// Star-rating widget
// Copyright 2006 (C) Ralph Thomas

#ifndef MISSION_VIEW_RATING_H
#define MISSION_VIEW_RATING_H

#include <factory.hpp>

namespace view {
	//
	/// The rating widget is a 5-star rating widget similar to that
	/// used in iTunes. It can bind to a double, and sets it between
	/// zero and five (inclusive). The "bind" parameter is required.
	///
	/// \param	parameters	a dictionary of parameters for the
	///				new rating widget.
	/// \param	parent		the parent of this rating widget.
	/// \param	token		the factory token for creating with.
	/// \return	a widget_node_t containing the rating widget.
	//
	adobe::widget_node_t rating_factory(
		const adobe::dictionary_t&	parameters,
		const adobe::widget_node_t&	parent,
		const adobe::factory_token_t&	token );
};

#endif
